package org.dromara.quick.chat.domain;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * 最近会话表实体类
 */
@Data
@Document(collection = "im_chat_conversation")
public class ImChatConversation implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    private String id;

    /**
     * 发送者id
     */
    private String senderId;

    /**
     * 接受者id
     */
    private String receiverId;

    /**
     * 类型
     */
    private Integer channelType;

    /**
     * 阅读最大消息id
     */
    private Long messageSeq;

    /**
     * 删除消息id
     */
    private Long deleteMessageSeq;

    /**
     * 最后更新时间
     */
    private Date updateTime;
}
